<!DOCTYPE html>
<html>
<head><meta charset="utf-8"/>
<meta name="renderer" content="webkit|ie-stand"/>
<meta http-equiv="X-UA-Compatible" content="IE=11;IE=10;IE=9;IE=edge,chrome=1"/>
<meta name="viewport" content="initial-scale=1.0, width=device-width, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no"/>
<meta name="format-detection" content="telephone=no, email=no"/>
<meta name="msapplication-tap-highlight" content="no"/>
<meta name="apple-mobile-web-app-capable" content="yes"/>
<meta name="apple-mobile-web-app-status-bar-style" content="black"/>
<meta name="x5-page-mode" content="app"/>
<meta name="browsermode" content="application"/>
<meta name="wap-font-scale" content="no"/>
<meta name="author" content="feilong.org"/>
<title>D:/xampp/htdocs/work/study/2023基础测试/</title>
</head>
<body>


<a id="aaa" href="" target="_blank">72字符串变数字.html</a>
<p id="demo"></p>

<script>

 aaa.href=document.title + aaa.innerHTML;
  
  
  var aa = function (){
    return new Promise((resolve,reject)=>{
	   resolve(1);
	})
  }
  
  var bb =async ()=>{
    var cc = await aa();
    var zz = cc + 22;
	return zz;
  }
   
  // async 函数 有返回值 返回的是一个 Promise 对象  结果由 async函数决定 === resolve(zz)
  console.log('0000=',bb());  // promise 对象 
  
  var gg =async ()=>{
    var kk = await bb();
	console.log('kk=',kk);  // 23
  }
  gg()
  
  
  var a = function(){
    console.log('111=');
  }
  function a(){
    console.log('222=');
  }
  
  
  
</script>
</body>
</html>
